-- GENERATED SPELL FOR [Withervine Rager] --


function spell0_4385(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_4385', 521, 1)
end

function Sorts_4385(pUnit, Event)
local choix_sorts_4385 = math.random(0, 0)
if choix_sorts_4385 == 0 then
pUnit:RegisterEvent('spell0_4385', 1, 1)
end
end

function mob4385_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4385', math.random(1500, 3000), 1)
end

function mob4385_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4385_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4385_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4385, 1, 'mob4385_Action')
RegisterUnitEvent(4385, 2, 'mob4385_Leave')
RegisterUnitEvent(4385, 3, 'mob4385_Kill')
RegisterUnitEvent(4385, 4, 'mob4385_Die')
